//引入模型
require('./../model/testedsModel');
require('./../model/testsModel');
const mongoose = require('mongoose');

//获取所有的已考
async function getAllTesteds(req,res,next) {
    let {studentId} = req.body;
    let testeds = await mongoose.model('testedsModel').find({studentId:studentId});
    console.log(testeds);
    res.send({ data:testeds, code: 200 });
}


module.exports = {
    getAllTesteds
}